<!DOCTYPE html>
<#assign basePath="">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <#if (news.data.title)??>
    <title>${news.data.title}</title>
    <#else>
    <title>新闻动态</title>
    </#if>
    <#include "links.ftl">
    <link rel="stylesheet" href="${basePath}/css/news.css">
</head>
<body>

<div>
    <!--导航-->
    <#include "header.ftl">
    <div class="news">
        <#include "advertising.ftl">
        <div class="carousel">
             <#if news.data??>
                 <div class="item">
                     <div class="news-item">
                         <div class="news-img">
                             <img src="${news.data.coverImage}">
                         </div>
                         <div class="news-content">
                             <div class="title"><h3>${news.data.title}</h3></div>
                             <div class="news-info">
                                 <p>${news.data.summary}</p>
                             </div>
                             <div class="news-date">
                                 <p>${news.data.createTime?date}</p>
                             </div>
                         </div>
                         <button class="open">阅读中...</button>
                     </div>
                     <div class="news-info">
                         <h4 class="news-title">${news.data.title}</h4>
                         <p class="news-content">${news.data.content}</p>
                     </div>
                 </div>
             <#else>
                 <div style="font-size: 30px; font-weight: 800; text-align: center;margin-top: 30px;padding:80px;background-color: darkgray;">
                     404-你访问的页面不见啦
                 </div>
             </#if>
        </div>
    </div>
    <!--底部-->
    <#include "footer.ftl">
</div>

</body>
</html>